import {LoginDto2, RegistDto} from "../type/user";
import request from "./request";

export function loginApi(data: LoginDto2) {
    return request({
        url: 'sys/user/login',
        method: 'POST',
        data: data
    })
}

export function registApi(data: RegistDto) {
    return request({
        url: 'sys/user/regist',
        method: 'POST',
        data: data
    })
}

